package yannan.voiplock4ble.bean.ble;

/**
 * 说明：
 * 作者：mainTel
 * 时间：2016/12/4 16:52
 * 备注：
 */
public class LockInfo extends BaseBleResponse {

    /*
    //门锁状态响应
        typedef struct {
            AppCommandHead_T head;
            uint8_t cmd;
            uint8_t reserve;	//对齐保留
            uint16_t token;
            uint8_t dumpEnergy;
            BOOL allPwdEnable;
            BOOL allFingerEnable;
        }LockStatusSend_T;
     */

    public int dumpEnergy; // 电量
    public int allPwdEnable;  //密码状态 1开启 0关闭
    public int allFingerEnable; //指静脉状态 1开启 0关闭

    public LockInfo(byte[] response) {
        super(response);
        dumpEnergy = content[0] & 0xff;
        allPwdEnable = content[1] & 0xff;
        allFingerEnable = content[3] & 0xff;
    }
}
